package com.lp.dao;

import com.lp.po.PagingVO;
import com.lp.po.Teacher;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TeacherDao {

    int count();
    int countByName(@Param("username") String username);
    List<Teacher> findAllTeacher(PagingVO pagingVO);
    //模糊查询
    List<Teacher> findByTeacherName(@Param("toPageNo")Integer toPageNo,@Param("pageSize")Integer pageSize ,@Param("username") String username);
    //查询工号
    Teacher selectTeacherUseid(Integer userid);
    //添加教师
    int insert(Teacher userid);
    //根据userid查找教师
    Teacher findByUserid(Integer userid);
    //根据userid更新教师
    int updateByPrimaryKey(Teacher userid);
    //根据userid删除教师
    int removeById(Integer userid);


    /*小程序模块*/
    List<Teacher> wxfindAllTeacher(Integer collegeid);
    List<Teacher> wxFindTeacherWithDepID(Integer coolegeid);

}